home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 070 (1990-04)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 070 (1990-04)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / ParNet / ppn-net.doc < prev    next >
Text File  |  1990-01-07  |  8KB  |  275 lines

  1.  
  2. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
  3. * |_o_o|\\ Copyright (c) 1989 The Software Distillery.                    *
  4. * |. o.| ||         All Rights Reserved                  *
  5. * | .  | ||         Written by John Toebes and Doug Walker          *
  6. * | o  | ||         The Software Distillery                  *
  7. * |  . |//         235 Trillingham Lane                  *
  8. * ======         Cary, NC 27513                      *
  9. *             BBS:(919)-471-6436                                   *
  10. \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  11.  
  12. This material is Copyright (C) 1988 and 1989 The Software Distillery.
  13. The Parallel Port Network code (PPN code) is Copyright (C) 1989 by Matthew Dillon.
  14.  
  15. This project brought to you by:
  16.  
  17.     John Toebes and Doug Walker    (NET: handler, lots and lots of code)
  18.     Matthew Dillon            (PPN code communications module)
  19.  
  20. It may be distributed freely as long as the following restrictions are met:
  21.  
  22.    1.  All files present in the distribution package must be redistributed
  23.        with the package, including this documentation file.  If you
  24.        distribute on diskette, all files must be on a single diskette.
  25.  
  26.    2.  The distributor may charge a fee to recover distribution costs.
  27.        The fee for diskette distribution should not be more than the cost
  28.        to obtain the same diskette from Fred Fish or The Software Distillery,
  29.        whichever is greater.  Current charge from The Software Distillery
  30.        is $6 per disk, including all postage and handling charges.
  31.  
  32.    3.  The distributor agrees to cease distributing the programs and data
  33.        involved if requested to do so by authors or any member of The
  34.        Software Distillery.
  35.  
  36. ------------------------------DISCLAIMER
  37.  
  38. Neither The Software Distillery nor any of its members will be liable for
  39. any damage arising from the failure of this program to perform as described,
  40. or any destruction of other programs or data residing on a system
  41. attempting to run the program.    While we know of no damaging errors, the
  42. user of this program uses it at his or her own risk.
  43.  
  44. -----------------------------FUNCTIONALITY
  45.  
  46. RUNNING THE NETWORK HANDLER:
  47.  
  48.     Machine A has your HDs, Machine B wants to access Machine A's HDs.
  49.  
  50.  
  51. 1.  You need to make a custom DB25 cable, refer to CABLE.DOC for
  52.     instructions on how to make the cable.
  53.  
  54. 2.  Connect the cable between Machine A and B's parallel port.
  55.  
  56.     -    Double check the wiring of the cable as per CABLE.DOC before
  57.     connecting it.
  58.  
  59.     -    Always connect the cable with both machines off.
  60.  
  61.  
  62. 3.  Copy NETPAR-HANDLER to L: on Machine B's boot floppy.
  63.  
  64. 4.  Append the included Mountlist entry to DEVS:Mountlist on Machine B's
  65.     boot floppy.
  66.  
  67. 5.  Copy NETPAR-SERVER to C: on Machine A (it can actually go anywhere).
  68.  
  69. 6.  Issue the CLI command "ASSIGN ROOT: <path>" on machine A.  This
  70.     determines where machine B will have initial access to.
  71.  
  72. 7.  Copy NODE.INFO ROOT:            (on machine A)
  73.     This file contains the .info information for the remote node that will
  74.     be displayed on the workbench screen of the local node.  Feel free
  75.     to replace it with any DRAWER type .info file.
  76.  
  77. 8.  Issue the CLI command "Run NETPAR-SERVER" on Machine A.  This starts up
  78.     the server process (You can kill the server by BREAKing the CLI number
  79.     that it ran under).
  80.  
  81. 9.  Issue the CLI command "Mount NET:" on Machine B.  The first reference
  82.     to NET: after the mount will load the handler.
  83.  
  84.     You should now be able to cd into NET:, and a directory, Foo should
  85.     exist.  Getting a directory of Foo (or any other operation) will
  86.     actually exercise the network so this is a good test.  If it freezes
  87.     your cable is probably incorrectly wired
  88.  
  89.     NOTE!   Apparently MODEM cables can interfere with the parallel port
  90.     network.  If it doesn't work, be sure there is nothing connected
  91.     to your serial port.  The problem is that the RI (Ring Indicate) line
  92.     on the serial port interferes with the SEL line on the parallel port.
  93.     If you do have problems, you may have to cut the RI line (i.e. fool
  94.     around with your serial cabling).
  95.  
  96.  
  97.  
  98. ============================================================================
  99.  
  100. Once the NET: device is running, you can use the provided NETMOUNT command
  101. to allow access to other devices besides ROOT: on the remote machine.
  102. NETMOUNT is a temporary stopgap until a real ROOT: device is implemented
  103. that allows access to all devices on a machine via a single handler.
  104.  
  105. For now, the NETMOUNT command format is
  106.  
  107. NETMOUNT <local device> <node name> <remote device>
  108.  
  109. where <local device>  is the name you MOUNTed (usually NET:)
  110.       <node name>     is the name you want to refer to the new entry as
  111.       <remote device> is the name of the device on the remote node to use
  112.  
  113. For example,
  114.  
  115. NETMOUNT NET: DF0 DF0:
  116.  
  117. would allow you to access the floppy on the remote node by using the path
  118. NET:DF0.  Thus,
  119.  
  120. DIR NET:DF0
  121.  
  122. would produce the same results as doing a DIR DF0: on the remote machine.
  123.  
  124.  
  125. ============================================================================
  126.  
  127.                 REBOOTING
  128.  
  129.     If you reboot one machine you MUST currently reboot the other as well.
  130.  
  131.  
  132. ===========================================================================
  133.  
  134.                 BOOT-STRAPPING NET:
  135.                  (Advanced Users)
  136.  
  137.     To Automate the process you want to 'RUN NETPAR-SERVER' on Machine A
  138.     in Machine A's startup-sequence.
  139.  
  140.     You then want to setup Machine B's boot floppy with the minimal programs
  141.     required and a startup sequence which does nothing more than get NET:
  142.     up and running and then finishes booting of Machine A's HD.
  143.  
  144.     Machine B's startup-sequence would look like this (This is the one
  145.     I use.  P.S. my ENV: is in my SYS: directory):
  146.  
  147. ----DF0:s/Startup-Sequence--------
  148.  
  149. setpatch
  150. mount net:
  151. net:foo/c/cd net:foo/c
  152.  
  153. resident resident
  154. resident echo
  155. resident execute
  156. resident run
  157. resident assign
  158. resident path
  159.  
  160. Echo "Boot in Progress"
  161.  
  162. assign c: /c
  163. assign t: ram:
  164. assign s: /s
  165. assign fonts: /fonts
  166. assign sys: /
  167. assign devs: /devs
  168. assign libs: /libs
  169. assign l: /l
  170. assign sc:   sys:sc
  171. assign env:  sys:env
  172. path RESET c: sys:altc
  173.  
  174. resident CLI l:Shell-Seg SYSTEM ADD
  175. mount newcon:
  176. newshell newcon:30/40/610/160/AmigaDOS FROM s:standalone-startup
  177.  
  178. endcli >nil: <nil:
  179.  
  180. ----------------------------------
  181.  
  182.     Machine B's boot floppy must have the following files to work with the
  183.     example startup-sequence above.
  184.  
  185.     ADDITIONALLY, THE HD ON MACHINE A MUST HAVE A COMPLETE WORKBENCH
  186.     DISTRIBUTION.  The above sequence assumes all the standard
  187.     Assign'd names are in SYS:
  188.  
  189.     DF0:L/Port-Handler
  190.       Disk-Validator
  191.       ConHandler
  192.       NewCon-Handler
  193.       Shell-Seg
  194.       NetPar-Handler    (in this distribution)
  195.       Ram-Handler
  196.  
  197.     DF0:S/Startup-Sequence    (the file shown above)
  198.  
  199.     DF0:Devs/Mountlist        (contains entries for NET: and NEWCON:)
  200.          System-Configuration
  201.  
  202.     DF0:Libs/icon.library
  203.          info.library
  204.          version.library
  205.  
  206.  
  207.     DF0:C/Run
  208.       Mount
  209.       SetPatch
  210.       Resident
  211.  
  212.       *** You probably want to put more programs in
  213.       here like Type, and Editor, etc...
  214.  
  215. -------------------------------
  216.     Note that my startup-sequence references s:Standalone-startup.  This file
  217.     is on Machine A's S: and contains further initialization.  For example:
  218.  
  219. ;   Mount remaining Volumes (DHB-DH3 for my system)
  220.  
  221. netmount net: DHB DHB:
  222. netmount net: DH0 DH0:
  223. netmount net: DH1 DH1:
  224. netmount net: DH2 DH2:
  225. netmount net: DH3 DH3:
  226.  
  227. ;   Assign all your favoriate places
  228. ;   (These are just examples)
  229.  
  230. assign alpha: net:DH0
  231. assign beta: net:DH1
  232. assign gamma: net:DH2
  233. assign delta: net:DH3
  234.  
  235. Echo "Continuing..."
  236.  
  237. assign dist:    Delta:dist
  238. assign ltmp:    Delta:ltmp
  239. assign atmp:    Delta:atmp
  240. assign tmp:    Delta:tmp
  241. assign quad:    ram:
  242. assign dl:    Delta:downloads
  243. assign lib:    alpha:lattice/lib
  244. assign lc:    alpha:lattice/c
  245. assign include: alpha:lattice/include
  246. assign lattice_include: alpha:lattice/CompactH
  247. assign aztec_include: alpha:aztec/include
  248. assign lattice: alpha:lattice
  249. assign aztec:    alpha:aztec
  250. assign ol:    gamma:openlook
  251. assign autoincs:    gamma:autoincs
  252. assign autodocs:    gamma:autodocs
  253. assign private_include: alpha:include
  254. assign text:    gamma:text
  255. assign dnet:    gamma:src/dnet
  256. assign games:    alpha:games
  257. assign fsrc:    gamma:fsrc
  258. assign src:    gamma:src
  259. assign srcc:    gamma:c
  260. assign sa:    gamma:sa
  261. assign altc:    alpha:altc
  262.  
  263. ;   My Aztec C enviroment
  264.  
  265. Set CCTEMP=ram:
  266. Set INCLUDE=aztec:include/!aztec:asm/
  267. Set CLIB=aztec:lib/
  268.  
  269. ;   My standard shell-startup has all my NewShell
  270. ;   aliases.
  271.  
  272. execute s:shell-startup
  273.  
  274.  
  275.